package cn.kaguyaever.dao;

import cn.kaguyaever.entity.Vote;

import java.util.List;

public interface VoteDao {

    public int createVote(Vote vote);

    public Vote queryVoteByVoteId(String voteId);

    public List<Vote> queryAllVoteByProjectId(String projectId);

    public int beginVote(String voteId);

    public int endVote(String voteId);

    public int setWinner(String winner,String voteId);

    public int deleteVote(String projectId);
}
